home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / dflat8.zip / CONFIG.H < prev    next >
Text File  |  1991-09-04  |  1KB  |  47 lines

  1. /* ---------------- config.h -------------- */
  2.  
  3. #ifndef CONFIG_H
  4. #define CONFIG_H
  5.  
  6. enum colortypes {
  7.     STD_COLOR,
  8.     SELECT_COLOR,
  9.     FRAME_COLOR,
  10.     HILITE_COLOR
  11. };
  12.  
  13. enum grounds { FG, BG };
  14.  
  15. /* ----------- configuration parameters ----------- */
  16. typedef struct config {
  17.     char version[sizeof VERSION];
  18.     char mono;         /* 0=color, 1=mono, 2=reverse mono    */
  19.     int InsertMode;    /* Editor insert mode                 */
  20.     int Tabs;          /* Editor tab stops                   */
  21.     int WordWrap;      /* True to word wrap editor           */
  22.     int Border;        /* True for application window border */
  23.     int Title;         /* True for application window title  */
  24.     int StatusBar;     /* True for appl'n window status bar  */
  25.     int Texture;       /* True for textured appl window      */
  26.     int ScreenLines;   /* Number of screen lines (25/43/50)  */
  27.     char PrinterPort[5];
  28.     int LinesPage;     /* Lines per printer page             */
  29.     int CharsLine;       /* Characters per printer line        */
  30.     int LeftMargin;       /* Printer margins                    */
  31.     int RightMargin;
  32.     int TopMargin;
  33.     int BottomMargin;
  34.     char clr[CLASSCOUNT] [4] [2]; /* Colors                  */
  35. } CONFIG;
  36.  
  37. extern CONFIG cfg;
  38. extern unsigned char color[CLASSCOUNT] [4] [2];
  39. extern unsigned char bw[CLASSCOUNT] [4] [2];
  40. extern unsigned char reverse[CLASSCOUNT] [4] [2];
  41.  
  42. int LoadConfig(void);
  43. void SaveConfig(void);
  44.  
  45. #endif
  46.  
  47.